package com.difsonapps.contacttranslator.dto;

public enum SocialContactTypeEnum {
	GMAIL(0), LINKEDIN(1),YAHOO(2),FACEBOOK(3),SKYPE(4) ,VIBER(4);

	private int code;

	private SocialContactTypeEnum(int code) {
		this.code = code;
	}

	public static SocialContactTypeEnum getDefault() {
		return SocialContactTypeEnum.GMAIL;
	}

	public int getCode() {
		return code;
	}

	public static SocialContactTypeEnum get(int code) {
		switch (code) {
		case 0:
			return GMAIL;
		case 1:
			return LINKEDIN;
		case 2:
			return YAHOO;
		case 3:
			return FACEBOOK;
		case 4:
			return SKYPE;
		case 5:
			return VIBER;
		}
		return GMAIL;
	}
}
